class PersonContributeEntity {
  int level;
  int userId;
  int roomId;
  String avatar;
  String nickname;
  String sex;
  int age;
  String number;
  String idNumber;

  PersonContributeEntity(
      {this.level,
        this.userId,
        this.roomId,
        this.avatar,
        this.nickname,
        this.sex,
        this.age,
        this.number,
        this.idNumber});

  PersonContributeEntity.fromJson(Map<String, dynamic> json) {
    level = json['level'];
    userId = json['user_id'];
    roomId = json['room_id'];
    avatar = json['avatar'];
    nickname = json['nickname'];
    sex = json['sex'];
    age = json['age'];
    number = json['number'];
    idNumber = json['id_number'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['level'] = this.level;
    data['user_id'] = this.userId;
    data['room_id'] = this.roomId;
    data['avatar'] = this.avatar;
    data['nickname'] = this.nickname;
    data['sex'] = this.sex;
    data['age'] = this.age;
    data['number'] = this.number;
    data['id_number'] = this.idNumber;
    return data;
  }
}